InputStream is = getClass().getResourceAsStream('foods.sql')

Scanner reader = new Scanner(is);
while (reader.hasNextLine()) {
	print reader.nextLine()
}

'testcontent'